using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace p301.Reports.F1Soc
{
    public partial class Print1SocR4 : DevExpress.XtraReports.UI.XtraReport
    {
        public Print1SocR4()
        {
            InitializeComponent();
        }

        public void Open(ds1Soc _ds1Soc)
        {
            this.DataSource = _ds1Soc; 
        }

        private void Cell_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            if ((sender as DevExpress.XtraReports.UI.XRTableCell).Text == "-1")
            {
                (sender as DevExpress.XtraReports.UI.XRTableCell).Text = "X";    
            }
        }

    }
}
